using EFCore.DomainModels;
using Microsoft.EntityFrameworkCore;
using System;

namespace EFCore.Data
{
    public class MyContext:DbContext
    {
        public DbSet<Province> Provinces { get; set; }

        public DbSet<City> Cities { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("Server=(localdb)\\MSSQLLocalDB;Initial Catalog=EFCoreDB;Integrated Security=true");            
        }
    }
}
